<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>TOML-to-Go: Convert TOML to Go instantly</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <!--[if IE]>
            <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <![endif]-->
        <meta name="description" content="TOML-to-Go: Convert TOML to Go instantly">
        <meta name="keywords" content="续日,xuri,TOML,Golang">
        <meta name="author" content="Ri Xu">
        <meta name="robots" content="all">
        <meta content="always" name="referrer">
        <meta name="wot-verification" content="c800202e4dd249fdc091"/>
        <meta name="p:domain_verify" content="4b12344b74fc609e10344b1782aafb0f"/>
        <meta name="360-site-verification" content="b84b5cd5e8cfcaeb4e123672070b2795"/>
        <meta name="msvalidate.01" content="CFBAB0FA541B804543BC09078FC99380"/>
        <meta name="copyright" content="Ri Xu Online">
        <meta name="language" content="en-US">
        <meta name="owner" content="Ri Xu">
        <meta name="topic" content="Golang,TOML,Go">
        <meta name="category" content="Tools">
        <meta name="summary" content="TOML-to-Go: Convert TOML to Go instantly">
        <meta name="rating" content="General">
        <meta name="coverage" content="Worldwide">
        <meta name="distribution" content="Global">

        <meta property="og:title" content="TOML-to-Go">
        <meta property="og:type" content="website">
        <meta property="og:url" content="https://xuri.me">
        <meta property="og:image" content="https://xuri.me/apps/icons/apple-touch-icon-180x180-precomposed.png">
        <meta property="og:description" content="Convert TOML to Go instantly">
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <link rel="license" href="http://www.opensource.org/licenses/mit-license.php"/>
        <link rel="dns-prefetch" href="//xuri.me">
        <link href="https://xuri.me/" rel="prefetch">

        <link rel="icon" sizes="192x192" href="https://xuri.me/apps/icons/touch-icon-192x192.png">
        <link rel="apple-touch-icon" sizes="180x180" href="https://xuri.me/apps/icons/apple-touch-icon-180x180-precomposed.png">
        <link rel="apple-touch-icon" sizes="152x152" href="https://xuri.me/apps/icons/apple-touch-icon-152x152-precomposed.png">
        <link rel="apple-touch-icon" sizes="144x144" href="https://xuri.me/apps/icons/apple-touch-icon-144x144-precomposed.png">
        <link rel="apple-touch-icon" sizes="120x120" href="https://xuri.me/apps/icons/apple-touch-icon-120x120-precomposed.png">
        <link rel="apple-touch-icon" sizes="114x114" href="https://xuri.me/apps/icons/apple-touch-icon-114x114-precomposed.png">
        <link rel="apple-touch-icon" sizes="76x76" href="https://xuri.me/apps/icons/apple-touch-icon-76x76-precomposed.png">
        <link rel="apple-touch-icon" sizes="72x72" href="https://xuri.me/apps/icons/apple-touch-icon-72x72-precomposed.png">
        <link rel="apple-touch-icon" href="https://xuri.me/apps/icons/apple-touch-icon-precomposed.png">
        <link rel="stylesheet" href="resources/css/tomorrow.highlight.css">
        <link rel="stylesheet" href="resources/css/common.css">
    </head>
    <body>
        <header>
            <div class="intro">
                <h1>TOML-to-Go</h1>
                <h2>Convert TOML to Go struct</h2>
                <p>
                    This tool instantly converts TOML into a Go type definition. Paste a TOML structure on the left and the equivalent Go type will be generated to the right, which you can paste into your program. The script has to make some assumptions, so double-check the output.
                </p>
                <p>
                    For an example, try converting TOML from the <a href="javascript:" id="sample1">SmartyStreets API</a>.
                </p>
                <p>
                    <a href="javascript:" id="dark">Dark mode</a>
                </p>
            </div>
            <img src="resources/images/toml-to-go.png" id="brand" alt="TOML-to-Go: Convert TOML to Go instantly" title="TOML-to-Go: Convert TOML to Go instantly">
            <div class="clear"></div>
        </header>
        <table>
            <tr>
                <th style="width: 45%;">TOML</th>
                <th style="width: 10%; font-size: 22px;">&#8594;</th>
                <th style="width: 45%;">Go <label><input type="checkbox" id="inline" checked> Inline type definitions</label></th>
            </tr>
        </table>
        <table>
            <tr>
                <td style="width: 50%;">
                    <textarea id="input" contenteditable placeholder="Paste TOML here"></textarea>
                </td>
                <td style="width: 50%;">
                    <div id="output"></div>
                </td>
            </tr>
        </table>

        <footer>
            Copyright &copy; 2013 - <script> document.write((new Date()).getFullYear()); </script> <a href="https://xuri.me/" title="Ri Xu Online" target="_blank">Ri Xu Online</a> All rights reserved. - <a href="https://github.com/xuri/toml-to-go" target="_blank" title="Source Code">View on GitHub</a>
            <br>
            The Go Gopher artwork is a derivative of that by <a href="https://blog.golang.org/6years" target="_blank">The Go Blog</a>.
        </footer>
        <script>
            if ('serviceWorker' in navigator) {
                navigator.serviceWorker.register('./sw.js').then(function(reg) {
                }).catch(function(err) {
                    console.warn('Error whilst registering service worker', err);
                })
            }
        </script>
        <script src="resources/js/jquery.min.js"></script>
        <script src="resources/js/highlight.min.js"></script>
        <script src="resources/js/json-to-go.js"></script>
        <script src="resources/js/toml.js"></script>
        <script src="resources/js/expanding.js"></script>
        <script src="resources/js/common.js"></script>
        <script src="resources/js/gofmt.js" async></script>
    </body>
</html>
